﻿using System;
using System.Globalization;
using System.Windows.Data;
using BalanceManagerApp.Model;

namespace BalanceManagerApp.Helpers.Converters
{
    public class FlowFundsGroupConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            FlowFundsItem item = (FlowFundsItem)value;
            return item.Item.Category;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
